export const animationFrame = fn =>
  function () {
    requestAnimationFrame(() => {
      fn.apply(this, arguments)
    })
  }
